package com.xgkj.diyiketang.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.xgkj.diyiketang.R;

/**
 * Created by XCKJ_Paladowow on 2016/4/12.
 */
public class MyZhangHuActivity extends BaseActivity implements View.OnClickListener {
    private Context mContext;
    private RelativeLayout mYueLayout;
    private RelativeLayout mChongZhi;
   // private RelativeLayout mTixian;
    private TextView back;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.myzhanghu);
        mContext = this;
        initView();
    }

    private void initView(){
        mYueLayout = (RelativeLayout) findViewById(R.id.myzhanghu_layout);
        mYueLayout.setOnClickListener(this);
        mChongZhi = (RelativeLayout) findViewById(R.id.mychongzhi_layout);
        mChongZhi.setOnClickListener(this);
//        mTixian = (RelativeLayout) findViewById(R.id.yuezhuanchu_layout);
//        mTixian.setOnClickListener(this);
        back = (TextView) findViewById(R.id.back);
        back.setOnClickListener(this);
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.myzhanghu_layout:
                Intent yIntent = new Intent(mContext,ZhangHuYueActivity.class);
                startActivity(yIntent);

                break;
            case R.id.mychongzhi_layout:
                Intent cInent = new Intent(mContext,RechargeActivity.class);
                startActivity(cInent);
                break;
//            case R.id.yuezhuanchu_layout:
//                Intent txInent = new Intent(mContext,TiXianActivity.class);
//                startActivity(txInent);
//                break;
            case R.id.back:
                finish();
                break;

        }
    }
}
